package net.xo68.destiny.contract.common;

/**
 * 系统常量
 * @author wuxie
 * @version 2020-10-29
 */
public final class SystemConstants {

    private SystemConstants() {
        throw new IllegalArgumentException();
    }

    /**
     * 配置键   服务器端口
     */
    public static final String CONFIG_SERVER_PORT="server.port";

    /**
     * 默认编码
     */
    public static final String ENCODE_DEFAULT = "UTF-8";

    public static final String ENCODE_UTF8 = "UTF-8";
    public static final String ENCODE_GBK = "GBK";

    /**
     * 空字符串
     */
    public final static String STRING_EMPTY="";
    /**
     * 空格
     */
    public final static String STRING_SPACE=" ";

    /**
     * 文件路径中要被替换的字符和替换字符
     */
    public final static String PATH_REPLACE_TARGET0="\\.\\";
    public final static String PATH_REPLACE_REPLACEMENT0="\\";
    public final static String PATH_REPLACE_TARGET1="/./";
    public final static String PATH_REPLACE_REPLACEMENT1="/";

    /**
     * 令牌头的key
     */
    public static final String TOKEN_HEADER = "Authorization";
    /**
     * 令牌令牌的前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * api令牌头的key
     */
    public static final String API_TOKEN_HEADER = "Authorization-Api";
    /**
     * api令牌令牌的前缀
     */
    public static final String API_TOKEN_PREFIX = "Bearer ";

    /**
     * 默认工作组名称
     */
    public static final String DEFAULT_WORK_GROUP = "default";

    /**
     * 线程启动延时秒数
     */
    public static final long INITIAL_DELAY_SECOND=3L;
    /**
     * 心跳周期默认值
     */
    public static final long HEARTBEAT_PERIOD_DEFAULT=45L;
}
